home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer (Italian) 47 / PC Gamer IT CD 47 2-2.iso / Nerf / NERFDEMO.EXE / System / UWindow.u / UWindowWindow_UWindowComboList_ScriptText.TextBuffer < prev    next >
Unknown  |  1999-10-21  |  6.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 72 66 63 6c 61 73 73 20 |........|rfclass |
|00000010| 55 57 69 6e 64 6f 77 43 | 6f 6d 62 6f 4c 69 73 74 |UWindowC|omboList|
|00000020| 20 65 78 74 65 6e 64 73 | 20 55 57 69 6e 64 6f 77 | extends| UWindow|
|00000030| 4c 69 73 74 43 6f 6e 74 | 72 6f 6c 3b 0d 0a 0d 0a |ListCont|rol;....|
|00000040| 0d 0a 76 61 72 20 55 57 | 69 6e 64 6f 77 43 6f 6d |..var UW|indowCom|
|00000050| 62 6f 43 6f 6e 74 72 6f | 6c 09 09 4f 77 6e 65 72 |boContro|l..Owner|
|00000060| 3b 0d 0a 76 61 72 20 55 | 57 69 6e 64 6f 77 56 53 |;..var U|WindowVS|
|00000070| 63 72 6f 6c 6c 42 61 72 | 09 09 56 65 72 74 53 42 |crollBar|..VertSB|
|00000080| 3b 0d 0a 0d 0a 0d 0a 76 | 61 72 20 55 57 69 6e 64 |;......v|ar UWind|
|00000090| 6f 77 43 6f 6d 62 6f 4c | 69 73 74 49 74 65 6d 09 |owComboL|istItem.|
|000000a0| 53 65 6c 65 63 74 65 64 | 3b 0d 0a 0d 0a 76 61 72 |Selected|;....var|
|000000b0| 20 69 6e 74 20 49 74 65 | 6d 48 65 69 67 68 74 3b | int Ite|mHeight;|
|000000c0| 0d 0a 76 61 72 20 69 6e | 74 20 56 42 6f 72 64 65 |..var in|t VBorde|
|000000d0| 72 3b 0d 0a 76 61 72 20 | 69 6e 74 20 48 42 6f 72 |r;..var |int HBor|
|000000e0| 64 65 72 3b 0d 0a 76 61 | 72 20 69 6e 74 20 54 65 |der;..va|r int Te|
|000000f0| 78 74 42 6f 72 64 65 72 | 3b 0d 0a 76 61 72 20 69 |xtBorder|;..var i|
|00000100| 6e 74 20 4d 61 78 56 69 | 73 69 62 6c 65 3b 0d 0a |nt MaxVi|sible;..|
|00000110| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 53 6f 72 74 28 |..functi|on Sort(|
|00000120| 29 0d 0a 7b 0d 0a 09 49 | 74 65 6d 73 2e 53 6f 72 |)..{...I|tems.Sor|
|00000130| 74 28 29 3b 0d 0a 7d 0d | 0a 0d 0a 0d 0a 66 75 6e |t();..}.|.....fun|
|00000140| 63 74 69 6f 6e 20 43 6c | 65 61 72 28 29 0d 0a 7b |ction Cl|ear()..{|
|00000150| 0d 0a 09 49 74 65 6d 73 | 2e 43 6c 65 61 72 28 29 |...Items|.Clear()|
|00000160| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|00000170| 20 54 65 78 74 75 72 65 | 20 47 65 74 4c 6f 6f 6b | Texture| GetLook|
|00000180| 41 6e 64 46 65 65 6c 54 | 65 78 74 75 72 65 28 29 |AndFeelT|exture()|
|00000190| 0d 0a 7b 0d 0a 09 72 65 | 74 75 72 6e 20 4c 6f 6f |..{...re|turn Loo|
|000001a0| 6b 41 6e 64 46 65 65 6c | 2e 41 63 74 69 76 65 3b |kAndFeel|.Active;|
|000001b0| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|000001c0| 53 65 74 75 70 28 29 0d | 0a 7b 0d 0a 09 56 65 72 |Setup().|.{...Ver|
|000001d0| 74 53 42 20 3d 20 55 57 | 69 6e 64 6f 77 56 53 63 |tSB = UW|indowVSc|
|000001e0| 72 6f 6c 6c 42 61 72 28 | 43 72 65 61 74 65 57 69 |rollBar(|CreateWi|
|000001f0| 6e 64 6f 77 28 63 6c 61 | 73 73 27 55 57 69 6e 64 |ndow(cla|ss'UWind|
|00000200| 6f 77 56 53 63 72 6f 6c | 6c 42 61 72 27 2c 20 30 |owVScrol|lBar', 0|
|00000210| 2c 20 57 69 6e 57 69 64 | 74 68 20 2d 20 31 36 2c |, WinWid|th - 16,|
|00000220| 20 31 36 2c 20 57 69 6e | 48 65 69 67 68 74 29 29 | 16, Win|Height))|
|00000230| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|00000240| 20 43 72 65 61 74 65 64 | 28 29 0d 0a 7b 0d 0a 09 | Created|()..{...|
|00000250| 4c 69 73 74 43 6c 61 73 | 73 20 3d 20 63 6c 61 73 |ListClas|s = clas|
|00000260| 73 27 55 57 69 6e 64 6f | 77 43 6f 6d 62 6f 4c 69 |s'UWindo|wComboLi|
|00000270| 73 74 49 74 65 6d 27 3b | 0d 0a 09 62 41 6c 77 61 |stItem';|...bAlwa|
|00000280| 79 73 4f 6e 54 6f 70 20 | 3d 20 54 72 75 65 3b 0d |ysOnTop |= True;.|
|00000290| 0a 09 62 54 72 61 6e 73 | 69 65 6e 74 20 3d 20 54 |..bTrans|ient = T|
|000002a0| 72 75 65 3b 0d 0a 09 53 | 75 70 65 72 2e 43 72 65 |rue;...S|uper.Cre|
|000002b0| 61 74 65 64 28 29 3b 0d | 0a 09 49 74 65 6d 48 65 |ated();.|..ItemHe|
|000002c0| 69 67 68 74 20 3d 20 31 | 35 3b 0d 0a 09 56 42 6f |ight = 1|5;...VBo|
|000002d0| 72 64 65 72 20 3d 20 33 | 3b 0d 0a 09 48 42 6f 72 |rder = 3|;...HBor|
|000002e0| 64 65 72 20 3d 20 33 3b | 0d 0a 09 54 65 78 74 42 |der = 3;|...TextB|
|000002f0| 6f 72 64 65 72 20 3d 20 | 39 3b 0d 0a 0d 0a 09 53 |order = |9;.....S|
|00000300| 75 70 65 72 2e 43 72 65 | 61 74 65 64 28 29 3b 0d |uper.Cre|ated();.|
|00000310| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 69 |.}....fu|nction i|
|00000320| 6e 74 20 46 69 6e 64 49 | 74 65 6d 49 6e 64 65 78 |nt FindI|temIndex|
|00000330| 28 73 74 72 69 6e 67 20 | 56 61 6c 75 65 2c 20 6f |(string |Value, o|
|00000340| 70 74 69 6f 6e 61 6c 20 | 62 6f 6f 6c 20 62 49 67 |ptional |bool bIg|
|00000350| 6e 6f 72 65 43 61 73 65 | 29 0d 0a 7b 0d 0a 09 6c |noreCase|)..{...l|
|00000360| 6f 63 61 6c 20 55 57 69 | 6e 64 6f 77 43 6f 6d 62 |ocal UWi|ndowComb|
|00000370| 6f 4c 69 73 74 49 74 65 | 6d 20 49 3b 0d 0a 09 6c |oListIte|m I;...l|
|00000380| 6f 63 61 6c 20 69 6e 74 | 20 43 6f 75 6e 74 3b 0d |ocal int| Count;.|
|00000390| 0a 0d 0a 09 49 20 3d 20 | 55 57 69 6e 64 6f 77 43 |....I = |UWindowC|
|000003a0| 6f 6d 62 6f 4c 69 73 74 | 49 74 65 6d 28 49 74 65 |omboList|Item(Ite|
|000003b0| 6d 73 2e 4e 65 78 74 29 | 3b 0d 0a 09 43 6f 75 6e |ms.Next)|;...Coun|
|000003c0| 74 20 3d 20 30 3b 0d 0a | 09 09 0d 0a 09 77 68 69 |t = 0;..|.....whi|
|000003d0| 6c 65 28 49 20 21 3d 20 | 4e 6f 6e 65 29 0d 0a 09 |le(I != |None)...|
|000003e0| 7b 0d 0a 09 09 69 66 28 | 62 49 67 6e 6f 72 65 43 |{....if(|bIgnoreC|
|000003f0| 61 73 65 20 26 26 20 49 | 2e 56 61 6c 75 65 20 7e |ase && I|.Value ~|
|00000400| 3d 20 56 61 6c 75 65 29 | 20 72 65 74 75 72 6e 20 |= Value)| return |
|00000410| 43 6f 75 6e 74 3b 0d 0a | 09 09 69 66 28 49 2e 56 |Count;..|..if(I.V|
|00000420| 61 6c 75 65 20 3d 3d 20 | 56 61 6c 75 65 29 20 72 |alue == |Value) r|
|00000430| 65 74 75 72 6e 20 43 6f | 75 6e 74 3b 0d 0a 0d 0a |eturn Co|unt;....|
|00000440| 09 09 43 6f 75 6e 74 2b | 2b 3b 0d 0a 09 09 49 20 |..Count+|+;....I |
|00000450| 3d 20 55 57 69 6e 64 6f | 77 43 6f 6d 62 6f 4c 69 |= UWindo|wComboLi|
|00000460| 73 74 49 74 65 6d 28 49 | 2e 4e 65 78 74 29 3b 0d |stItem(I|.Next);.|
|00000470| 0a 09 7d 0d 0a 0d 0a 09 | 72 65 74 75 72 6e 20 2d |..}.....|return -|
|00000480| 31 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |1;..}...|.functio|
|00000490| 6e 20 69 6e 74 20 46 69 | 6e 64 49 74 65 6d 49 6e |n int Fi|ndItemIn|
|000004a0| 64 65 78 32 28 73 74 72 | 69 6e 67 20 56 61 6c 75 |dex2(str|ing Valu|
|000004b0| 65 32 2c 20 6f 70 74 69 | 6f 6e 61 6c 20 62 6f 6f |e2, opti|onal boo|
|000004c0| 6c 20 62 49 67 6e 6f 72 | 65 43 61 73 65 29 0d 0a |l bIgnor|eCase)..|
|000004d0| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 55 57 69 6e 64 6f |{...loca|l UWindo|
|000004e0| 77 43 6f 6d 62 6f 4c 69 | 73 74 49 74 65 6d 20 49 |wComboLi|stItem I|
|000004f0| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 69 6e 74 20 43 6f |;...loca|l int Co|
|00000500| 75 6e 74 3b 0d 0a 0d 0a | 09 49 20 3d 20 55 57 69 |unt;....|.I = UWi|
|00000510| 6e 64 6f 77 43 6f 6d 62 | 6f 4c 69 73 74 49 74 65 |ndowComb|oListIte|
|00000520| 6d 28 49 74 65 6d 73 2e | 4e 65 78 74 29 3b 0d 0a |m(Items.|Next);..|
|00000530| 09 43 6f 75 6e 74 20 3d | 20 30 3b 0d 0a 09 09 0d |.Count =| 0;.....|
|00000540| 0a 09 77 68 69 6c 65 28 | 49 20 21 3d 20 4e 6f 6e |..while(|I != Non|
|00000550| 65 29 0d 0a 09 7b 0d 0a | 09 09 69 66 28 62 49 67 |e)...{..|..if(bIg|
|00000560| 6e 6f 72 65 43 61 73 65 | 20 26 26 20 49 2e 56 61 |noreCase| && I.Va|
|00000570| 6c 75 65 32 20 7e 3d 20 | 56 61 6c 75 65 32 29 20 |lue2 ~= |Value2) |
|00000580| 72 65 74 75 72 6e 20 43 | 6f 75 6e 74 3b 0d 0a 09 |return C|ount;...|
|00000590| 09 69 66 28 49 2e 56 61 | 6c 75 65 32 20 3d 3d 20 |.if(I.Va|lue2 == |
|000005a0| 56 61 6c 75 65 32 29 20 | 72 65 74 75 72 6e 20 43 |Value2) |return C|
|000005b0| 6f 75 6e 74 3b 0d 0a 0d | 0a 09 09 43 6f 75 6e 74 |ount;...|...Count|
|000005c0| 2b 2b 3b 0d 0a 09 09 49 | 20 3d 20 55 57 69 6e 64 |++;....I| = UWind|
|000005d0| 6f 77 43 6f 6d 62 6f 4c | 69 73 74 49 74 65 6d 28 |owComboL|istItem(|
|000005e0| 49 2e 4e 65 78 74 29 3b | 0d 0a 09 7d 0d 0a 0d 0a |I.Next);|...}....|
|000005f0| 09 72 65 74 75 72 6e 20 | 2d 31 3b 0d 0a 7d 0d 0a |.return |-1;..}..|
|00000600| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 73 74 72 69 6e |..functi|on strin|
|00000610| 67 20 47 65 74 49 74 65 | 6d 56 61 6c 75 65 28 69 |g GetIte|mValue(i|
|00000620| 6e 74 20 49 6e 64 65 78 | 29 0d 0a 7b 0d 0a 09 6c |nt Index|)..{...l|
|00000630| 6f 63 61 6c 20 55 57 69 | 6e 64 6f 77 43 6f 6d 62 |ocal UWi|ndowComb|
|00000640| 6f 4c 69 73 74 49 74 65 | 6d 20 49 3b 0d 0a 09 6c |oListIte|m I;...l|
|00000650| 6f 63 61 6c 20 69 6e 74 | 20 43 6f 75 6e 74 3b 0d |ocal int| Count;.|
|00000660| 0a 0d 0a 09 49 20 3d 20 | 55 57 69 6e 64 6f 77 43 |....I = |UWindowC|
|00000670| 6f 6d 62 6f 4c 69 73 74 | 49 74 65 6d 28 49 74 65 |omboList|Item(Ite|
|00000680| 6d 73 2e 4e 65 78 74 29 | 3b 0d 0a 09 43 6f 75 6e |ms.Next)|;...Coun|
|00000690| 74 20 3d 20 30 3b 0d 0a | 09 09 0d 0a 09 77 68 69 |t = 0;..|.....whi|
|000006a0| 6c 65 28 49 20 21 3d 20 | 4e 6f 6e 65 29 0d 0a 09 |le(I != |None)...|
|000006b0| 7b 0d 0a 09 09 69 66 28 | 43 6f 75 6e 74 20 3d 3d |{....if(|Count ==|
|000006c0| 20 49 6e 64 65 78 29 20 | 72 65 74 75 72 6e 20 49 | Index) |return I|
|000006d0| 2e 56 61 6c 75 65 3b 0d | 0a 0d 0a 09 09 43 6f 75 |.Value;.|.....Cou|
|000006e0| 6e 74 2b 2b 3b 0d 0a 09 | 09 49 20 3d 20 55 57 69 |nt++;...|.I = UWi|
|000006f0| 6e 64 6f 77 43 6f 6d 62 | 6f 4c 69 73 74 49 74 65 |ndowComb|oListIte|
|00000700| 6d 28 49 2e 4e 65 78 74 | 29 3b 0d 0a 09 7d 0d 0a |m(I.Next|);...}..|
|00000710| 0d 0a 09 72 65 74 75 72 | 6e 20 22 22 3b 0d 0a 7d |...retur|n "";..}|
|00000720| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 52 65 6d |....func|tion Rem|
|00000730| 6f 76 65 49 74 65 6d 28 | 69 6e 74 20 49 6e 64 65 |oveItem(|int Inde|
|00000740| 78 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 55 57 |x)..{...|local UW|
|00000750| 69 6e 64 6f 77 43 6f 6d | 62 6f 4c 69 73 74 49 74 |indowCom|boListIt|
|00000760| 65 6d 20 49 3b 0d 0a 09 | 6c 6f 63 61 6c 20 69 6e |em I;...|local in|
|00000770| 74 20 43 6f 75 6e 74 3b | 0d 0a 0d 0a 09 69 66 28 |t Count;|.....if(|
|00000780| 49 6e 64 65 78 20 3d 3d | 20 2d 31 29 0d 0a 09 09 |Index ==| -1)....|
|00000790| 72 65 74 75 72 6e 3b 0d | 0a 0d 0a 09 49 20 3d 20 |return;.|....I = |
|000007a0| 55 57 69 6e 64 6f 77 43 | 6f 6d 62 6f 4c 69 73 74 |UWindowC|omboList|
|000007b0| 49 74 65 6d 28 49 74 65 | 6d 73 2e 4e 65 78 74 29 |Item(Ite|ms.Next)|
|000007c0| 3b 0d 0a 09 43 6f 75 6e | 74 20 3d 20 30 3b 0d 0a |;...Coun|t = 0;..|
|000007d0| 09 09 0d 0a 09 77 68 69 | 6c 65 28 49 20 21 3d 20 |.....whi|le(I != |
|000007e0| 4e 6f 6e 65 29 0d 0a 09 | 7b 0d 0a 09 09 69 66 28 |None)...|{....if(|
|000007f0| 43 6f 75 6e 74 20 3d 3d | 20 49 6e 64 65 78 29 0d |Count ==| Index).|
|00000800| 0a 09 09 7b 0d 0a 09 09 | 09 49 2e 52 65 6d 6f 76 |...{....|.I.Remov|
|00000810| 65 28 29 3b 0d 0a 09 09 | 09 72 65 74 75 72 6e 3b |e();....|.return;|
|00000820| 0d 0a 09 09 7d 0d 0a 0d | 0a 09 09 43 6f 75 6e 74 |....}...|...Count|
|00000830| 2b 2b 3b 0d 0a 09 09 49 | 20 3d 20 55 57 69 6e 64 |++;....I| = UWind|
|00000840| 6f 77 43 6f 6d 62 6f 4c | 69 73 74 49 74 65 6d 28 |owComboL|istItem(|
|00000850| 49 2e 4e 65 78 74 29 3b | 0d 0a 09 7d 0d 0a 7d 0d |I.Next);|...}..}.|
|00000860| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 73 74 72 69 |...funct|ion stri|
|00000870| 6e 67 20 47 65 74 49 74 | 65 6d 56 61 6c 75 65 32 |ng GetIt|emValue2|
|00000880| 28 69 6e 74 20 49 6e 64 | 65 78 29 0d 0a 7b 0d 0a |(int Ind|ex)..{..|
|00000890| 09 6c 6f 63 61 6c 20 55 | 57 69 6e 64 6f 77 43 6f |.local U|WindowCo|
|000008a0| 6d 62 6f 4c 69 73 74 49 | 74 65 6d 20 49 3b 0d 0a |mboListI|tem I;..|
|000008b0| 09 6c 6f 63 61 6c 20 69 | 6e 74 20 43 6f 75 6e 74 |.local i|nt Count|
|000008c0| 3b 0d 0a 0d 0a 09 49 20 | 3d 20 55 57 69 6e 64 6f |;.....I |= UWindo|
|000008d0| 77 43 6f 6d 62 6f 4c 69 | 73 74 49 74 65 6d 28 49 |wComboLi|stItem(I|
|000008e0| 74 65 6d 73 2e 4e 65 78 | 74 29 3b 0d 0a 09 43 6f |tems.Nex|t);...Co|
|000008f0| 75 6e 74 20 3d 20 30 3b | 0d 0a 09 09 0d 0a 09 77 |unt = 0;|.......w|
|00000900| 68 69 6c 65 28 49 20 21 | 3d 20 4e 6f 6e 65 29 0d |hile(I !|= None).|
|00000910| 0a 09 7b 0d 0a 09 09 69 | 66 28 43 6f 75 6e 74 20 |..{....i|f(Count |
|00000920| 3d 3d 20 49 6e 64 65 78 | 29 20 72 65 74 75 72 6e |== Index|) return|
|00000930| 20 49 2e 56 61 6c 75 65 | 32 3b 0d 0a 0d 0a 09 09 | I.Value|2;......|
|00000940| 43 6f 75 6e 74 2b 2b 3b | 0d 0a 09 09 49 20 3d 20 |Count++;|....I = |
|00000950| 55 57 69 6e 64 6f 77 43 | 6f 6d 62 6f 4c 69 73 74 |UWindowC|omboList|
|00000960| 49 74 65 6d 28 49 2e 4e | 65 78 74 29 3b 0d 0a 09 |Item(I.N|ext);...|
|00000970| 7d 0d 0a 0d 0a 09 72 65 | 74 75 72 6e 20 22 22 3b |}.....re|turn "";|
|00000980| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|00000990| 41 64 64 49 74 65 6d 28 | 73 74 72 69 6e 67 20 56 |AddItem(|string V|
|000009a0| 61 6c 75 65 2c 20 6f 70 | 74 69 6f 6e 61 6c 20 73 |alue, op|tional s|
|000009b0| 74 72 69 6e 67 20 56 61 | 6c 75 65 32 2c 20 6f 70 |tring Va|lue2, op|
|000009c0| 74 69 6f 6e 61 6c 20 69 | 6e 74 20 53 6f 72 74 57 |tional i|nt SortW|
|000009d0| 65 69 67 68 74 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |eight)..|{...loca|
|000009e0| 6c 20 55 57 69 6e 64 6f | 77 43 6f 6d 62 6f 4c 69 |l UWindo|wComboLi|
|000009f0| 73 74 49 74 65 6d 20 49 | 3b 0d 0a 09 49 20 3d 20 |stItem I|;...I = |
|00000a00| 55 57 69 6e 64 6f 77 43 | 6f 6d 62 6f 4c 69 73 74 |UWindowC|omboList|
|00000a10| 49 74 65 6d 28 49 74 65 | 6d 73 2e 41 70 70 65 6e |Item(Ite|ms.Appen|
|00000a20| 64 28 63 6c 61 73 73 27 | 55 57 69 6e 64 6f 77 43 |d(class'|UWindowC|
|00000a30| 6f 6d 62 6f 4c 69 73 74 | 49 74 65 6d 27 29 29 3b |omboList|Item'));|
|00000a40| 0d 0a 09 49 2e 56 61 6c | 75 65 20 3d 20 56 61 6c |...I.Val|ue = Val|
|00000a50| 75 65 3b 0d 0a 09 49 2e | 56 61 6c 75 65 32 20 3d |ue;...I.|Value2 =|
|00000a60| 20 56 61 6c 75 65 32 3b | 0d 0a 09 49 2e 53 6f 72 | Value2;|...I.Sor|
|00000a70| 74 57 65 69 67 68 74 20 | 3d 20 53 6f 72 74 57 65 |tWeight |= SortWe|
|00000a80| 69 67 68 74 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |ight;..}|....func|
|00000a90| 74 69 6f 6e 20 49 6e 73 | 65 72 74 49 74 65 6d 28 |tion Ins|ertItem(|
|00000aa0| 73 74 72 69 6e 67 20 56 | 61 6c 75 65 2c 20 6f 70 |string V|alue, op|
|00000ab0| 74 69 6f 6e 61 6c 20 73 | 74 72 69 6e 67 20 56 61 |tional s|tring Va|
|00000ac0| 6c 75 65 32 2c 20 6f 70 | 74 69 6f 6e 61 6c 20 69 |lue2, op|tional i|
|00000ad0| 6e 74 20 53 6f 72 74 57 | 65 69 67 68 74 29 0d 0a |nt SortW|eight)..|
|00000ae0| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 55 57 69 6e 64 6f |{...loca|l UWindo|
|00000af0| 77 43 6f 6d 62 6f 4c 69 | 73 74 49 74 65 6d 20 49 |wComboLi|stItem I|
|00000b00| 3b 0d 0a 09 49 20 3d 20 | 55 57 69 6e 64 6f 77 43 |;...I = |UWindowC|
|00000b10| 6f 6d 62 6f 4c 69 73 74 | 49 74 65 6d 28 49 74 65 |omboList|Item(Ite|
|00000b20| 6d 73 2e 49 6e 73 65 72 | 74 28 63 6c 61 73 73 27 |ms.Inser|t(class'|
|00000b30| 55 57 69 6e 64 6f 77 43 | 6f 6d 62 6f 4c 69 73 74 |UWindowC|omboList|
|00000b40| 49 74 65 6d 27 29 29 3b | 0d 0a 09 49 2e 56 61 6c |Item'));|...I.Val|
|00000b50| 75 65 20 3d 20 56 61 6c | 75 65 3b 0d 0a 09 49 2e |ue = Val|ue;...I.|
|00000b60| 56 61 6c 75 65 32 20 3d | 20 56 61 6c 75 65 32 3b |Value2 =| Value2;|
|00000b70| 0d 0a 09 49 2e 53 6f 72 | 74 57 65 69 67 68 74 20 |...I.Sor|tWeight |
|00000b80| 3d 20 53 6f 72 74 57 65 | 69 67 68 74 3b 0d 0a 7d |= SortWe|ight;..}|
|00000b90| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 53 65 74 |....func|tion Set|
|00000ba0| 53 65 6c 65 63 74 65 64 | 28 66 6c 6f 61 74 20 58 |Selected|(float X|
|00000bb0| 2c 20 66 6c 6f 61 74 20 | 59 29 0d 0a 7b 0d 0a 09 |, float |Y)..{...|
|00000bc0| 6c 6f 63 61 6c 20 55 57 | 69 6e 64 6f 77 43 6f 6d |local UW|indowCom|
|00000bd0| 62 6f 4c 69 73 74 49 74 | 65 6d 20 4e 65 77 53 65 |boListIt|em NewSe|
|00000be0| 6c 65 63 74 65 64 2c 20 | 49 74 65 6d 3b 0d 0a 09 |lected, |Item;...|
|00000bf0| 6c 6f 63 61 6c 20 69 6e | 74 20 69 2c 20 43 6f 75 |local in|t i, Cou|
|00000c00| 6e 74 3b 0d 0a 0d 0a 09 | 43 6f 75 6e 74 20 3d 20 |nt;.....|Count = |
|00000c10| 30 3b 0d 0a 09 66 6f 72 | 28 20 49 74 65 6d 20 3d |0;...for|( Item =|
|00000c20| 20 55 57 69 6e 64 6f 77 | 43 6f 6d 62 6f 4c 69 73 | UWindow|ComboLis|
|00000c30| 74 49 74 65 6d 28 49 74 | 65 6d 73 2e 4e 65 78 74 |tItem(It|ems.Next|
|00000c40| 29 3b 49 74 65 6d 20 21 | 3d 20 4e 6f 6e 65 3b 20 |);Item !|= None; |
|00000c50| 49 74 65 6d 20 3d 20 55 | 57 69 6e 64 6f 77 43 6f |Item = U|WindowCo|
|00000c60| 6d 62 6f 4c 69 73 74 49 | 74 65 6d 28 49 74 65 6d |mboListI|tem(Item|
|00000c70| 2e 4e 65 78 74 29 20 29 | 0d 0a 09 09 43 6f 75 6e |.Next) )|....Coun|
|00000c80| 74 2b 2b 3b 0d 0a 0d 0a | 09 69 20 3d 20 28 59 20 |t++;....|.i = (Y |
|00000c90| 2d 20 56 42 6f 72 64 65 | 72 29 20 2f 20 49 74 65 |- VBorde|r) / Ite|
|00000ca0| 6d 48 65 69 67 68 74 20 | 2b 20 56 65 72 74 53 42 |mHeight |+ VertSB|
|00000cb0| 2e 50 6f 73 3b 0d 0a 0d | 0a 09 69 66 28 69 20 3c |.Pos;...|..if(i <|
|00000cc0| 20 30 29 0d 0a 09 09 69 | 20 3d 20 30 3b 0d 0a 0d | 0)....i| = 0;...|
|00000cd0| 0a 09 69 66 28 69 20 3e | 3d 20 56 65 72 74 53 42 |..if(i >|= VertSB|
|00000ce0| 2e 50 6f 73 20 2b 20 4d | 69 6e 28 43 6f 75 6e 74 |.Pos + M|in(Count|
|00000cf0| 2c 20 4d 61 78 56 69 73 | 69 62 6c 65 29 29 0d 0a |, MaxVis|ible))..|
|00000d00| 09 09 69 20 3d 20 56 65 | 72 74 53 42 2e 50 6f 73 |..i = Ve|rtSB.Pos|
|00000d10| 20 2b 20 4d 69 6e 28 43 | 6f 75 6e 74 2c 20 4d 61 | + Min(C|ount, Ma|
|00000d20| 78 56 69 73 69 62 6c 65 | 29 20 2d 20 31 3b 0d 0a |xVisible|) - 1;..|
|00000d30| 0d 0a 09 4e 65 77 53 65 | 6c 65 63 74 65 64 20 3d |...NewSe|lected =|
|00000d40| 20 55 57 69 6e 64 6f 77 | 43 6f 6d 62 6f 4c 69 73 | UWindow|ComboLis|
|00000d50| 74 49 74 65 6d 28 49 74 | 65 6d 73 2e 46 69 6e 64 |tItem(It|ems.Find|
|00000d60| 45 6e 74 72 79 28 69 29 | 29 3b 0d 0a 0d 0a 09 69 |Entry(i)|);.....i|
|00000d70| 66 28 4e 65 77 53 65 6c | 65 63 74 65 64 20 21 3d |f(NewSel|ected !=|
|00000d80| 20 53 65 6c 65 63 74 65 | 64 29 0d 0a 09 7b 0d 0a | Selecte|d)...{..|
|00000d90| 09 09 69 66 28 4e 65 77 | 53 65 6c 65 63 74 65 64 |..if(New|Selected|
|00000da0| 20 3d 3d 20 4e 6f 6e 65 | 29 20 0d 0a 09 09 09 53 | == None|) .....S|
|00000db0| 65 6c 65 63 74 65 64 20 | 3d 20 4e 6f 6e 65 3b 0d |elected |= None;.|
|00000dc0| 0a 09 09 65 6c 73 65 0d | 0a 09 09 09 53 65 6c 65 |...else.|....Sele|
|00000dd0| 63 74 65 64 20 3d 20 4e | 65 77 53 65 6c 65 63 74 |cted = N|ewSelect|
|00000de0| 65 64 3b 0d 0a 09 7d 09 | 0d 0a 7d 0d 0a 0d 0a 66 |ed;...}.|..}....f|
|00000df0| 75 6e 63 74 69 6f 6e 20 | 4d 6f 75 73 65 4d 6f 76 |unction |MouseMov|
|00000e00| 65 28 66 6c 6f 61 74 20 | 58 2c 20 66 6c 6f 61 74 |e(float |X, float|
|00000e10| 20 59 29 0d 0a 7b 0d 0a | 09 53 75 70 65 72 2e 4d | Y)..{..|.Super.M|
|00000e20| 6f 75 73 65 4d 6f 76 65 | 28 58 2c 20 59 29 3b 0d |ouseMove|(X, Y);.|
|00000e30| 0a 09 69 66 28 59 20 3e | 20 57 69 6e 48 65 69 67 |..if(Y >| WinHeig|
|00000e40| 68 74 29 20 56 65 72 74 | 53 42 2e 53 63 72 6f 6c |ht) Vert|SB.Scrol|
|00000e50| 6c 28 31 29 3b 0d 0a 09 | 69 66 28 59 20 3c 20 30 |l(1);...|if(Y < 0|
|00000e60| 29 20 56 65 72 74 53 42 | 2e 53 63 72 6f 6c 6c 28 |) VertSB|.Scroll(|
|00000e70| 2d 31 29 3b 0d 0a 0d 0a | 09 53 65 74 53 65 6c 65 |-1);....|.SetSele|
|00000e80| 63 74 65 64 28 58 2c 20 | 59 29 3b 0d 0a 0d 0a 09 |cted(X, |Y);.....|
|00000e90| 46 6f 63 75 73 57 69 6e | 64 6f 77 28 29 3b 0d 0a |FocusWin|dow();..|
|00000ea0| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 4c 4d |}....fun|ction LM|
|00000eb0| 6f 75 73 65 55 70 28 66 | 6c 6f 61 74 20 58 2c 20 |ouseUp(f|loat X, |
|00000ec0| 66 6c 6f 61 74 20 59 29 | 0d 0a 7b 0d 0a 09 49 66 |float Y)|..{...If|
|00000ed0| 28 59 20 3e 3d 20 30 20 | 26 26 20 59 20 3c 3d 20 |(Y >= 0 |&& Y <= |
|00000ee0| 57 69 6e 48 65 69 67 68 | 74 20 26 26 20 53 65 6c |WinHeigh|t && Sel|
|00000ef0| 65 63 74 65 64 20 21 3d | 20 4e 6f 6e 65 29 0d 0a |ected !=| None)..|
|00000f00| 09 7b 0d 0a 09 09 45 78 | 65 63 75 74 65 49 74 65 |.{....Ex|ecuteIte|
|00000f10| 6d 28 53 65 6c 65 63 74 | 65 64 29 3b 0d 0a 09 7d |m(Select|ed);...}|
|00000f20| 0d 0a 09 53 75 70 65 72 | 2e 4c 4d 6f 75 73 65 55 |...Super|.LMouseU|
|00000f30| 70 28 58 2c 20 59 29 3b | 0d 0a 7d 0d 0a 0d 0a 66 |p(X, Y);|..}....f|
|00000f40| 75 6e 63 74 69 6f 6e 20 | 4c 4d 6f 75 73 65 44 6f |unction |LMouseDo|
|00000f50| 77 6e 28 66 6c 6f 61 74 | 20 58 2c 20 66 6c 6f 61 |wn(float| X, floa|
|00000f60| 74 20 59 29 0d 0a 7b 0d | 0a 09 52 6f 6f 74 2e 43 |t Y)..{.|..Root.C|
|00000f70| 61 70 74 75 72 65 4d 6f | 75 73 65 28 29 3b 0d 0a |aptureMo|use();..|
|00000f80| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 42 65 |}....fun|ction Be|
|00000f90| 66 6f 72 65 50 61 69 6e | 74 28 43 61 6e 76 61 73 |forePain|t(Canvas|
|00000fa0| 20 43 2c 20 66 6c 6f 61 | 74 20 58 2c 20 66 6c 6f | C, floa|t X, flo|
|00000fb0| 61 74 20 59 29 0d 0a 7b | 0d 0a 09 6c 6f 63 61 6c |at Y)..{|...local|
|00000fc0| 20 66 6c 6f 61 74 20 57 | 2c 20 48 2c 20 4d 61 78 | float W|, H, Max|
|00000fd0| 57 69 64 74 68 3b 0d 0a | 09 6c 6f 63 61 6c 20 69 |Width;..|.local i|
|00000fe0| 6e 74 20 43 6f 75 6e 74 | 3b 0d 0a 09 6c 6f 63 61 |nt Count|;...loca|
|00000ff0| 6c 20 55 57 69 6e 64 6f | 77 43 6f 6d 62 6f 4c 69 |l UWindo|wComboLi|
|00001000| 73 74 49 74 65 6d 20 49 | 3b 0d 0a 09 6c 6f 63 61 |stItem I|;...loca|
|00001010| 6c 20 66 6c 6f 61 74 20 | 4c 69 73 74 58 2c 20 4c |l float |ListX, L|
|00001020| 69 73 74 59 3b 0d 0a 09 | 6c 6f 63 61 6c 20 66 6c |istY;...|local fl|
|00001030| 6f 61 74 20 45 78 74 72 | 61 57 69 64 74 68 3b 0d |oat Extr|aWidth;.|
|00001040| 0a 09 09 0d 0a 09 43 2e | 46 6f 6e 74 20 3d 20 52 |......C.|Font = R|
|00001050| 6f 6f 74 2e 46 6f 6e 74 | 73 5b 46 5f 4e 6f 72 6d |oot.Font|s[F_Norm|
|00001060| 61 6c 5d 3b 0d 0a 09 43 | 2e 53 65 74 50 6f 73 28 |al];...C|.SetPos(|
|00001070| 30 2c 20 30 29 3b 0d 0a | 0d 0a 09 4d 61 78 57 69 |0, 0);..|...MaxWi|
|00001080| 64 74 68 20 3d 20 4f 77 | 6e 65 72 2e 45 64 69 74 |dth = Ow|ner.Edit|
|00001090| 42 6f 78 57 69 64 74 68 | 3b 0d 0a 09 45 78 74 72 |BoxWidth|;...Extr|
|000010a0| 61 57 69 64 74 68 20 3d | 20 28 28 48 42 6f 72 64 |aWidth =| ((HBord|
|000010b0| 65 72 20 2b 20 54 65 78 | 74 42 6f 72 64 65 72 29 |er + Tex|tBorder)|
|000010c0| 20 2a 20 32 29 3b 0d 0a | 0d 0a 09 43 6f 75 6e 74 | * 2);..|...Count|
|000010d0| 20 3d 20 49 74 65 6d 73 | 2e 43 6f 75 6e 74 28 29 | = Items|.Count()|
|000010e0| 3b 0d 0a 09 69 66 28 43 | 6f 75 6e 74 20 3e 20 4d |;...if(C|ount > M|
|000010f0| 61 78 56 69 73 69 62 6c | 65 29 0d 0a 09 7b 0d 0a |axVisibl|e)...{..|
|00001100| 09 09 45 78 74 72 61 57 | 69 64 74 68 20 2b 3d 20 |..ExtraW|idth += |
|00001110| 4c 6f 6f 6b 41 6e 64 46 | 65 65 6c 2e 53 69 7a 65 |LookAndF|eel.Size|
|00001120| 5f 53 63 72 6f 6c 6c 62 | 61 72 57 69 64 74 68 3b |_Scrollb|arWidth;|
|00001130| 0d 0a 09 09 57 69 6e 48 | 65 69 67 68 74 20 3d 20 |....WinH|eight = |
|00001140| 28 49 74 65 6d 48 65 69 | 67 68 74 20 2a 20 4d 61 |(ItemHei|ght * Ma|
|00001150| 78 56 69 73 69 62 6c 65 | 29 20 2b 20 28 56 42 6f |xVisible|) + (VBo|
|00001160| 72 64 65 72 20 2a 20 32 | 29 3b 0d 0a 09 7d 0d 0a |rder * 2|);...}..|
|00001170| 09 65 6c 73 65 0d 0a 09 | 7b 0d 0a 09 09 56 65 72 |.else...|{....Ver|
|00001180| 74 53 42 2e 50 6f 73 20 | 3d 20 30 3b 0d 0a 09 09 |tSB.Pos |= 0;....|
|00001190| 57 69 6e 48 65 69 67 68 | 74 20 3d 20 28 49 74 65 |WinHeigh|t = (Ite|
|000011a0| 6d 48 65 69 67 68 74 20 | 2a 20 43 6f 75 6e 74 29 |mHeight |* Count)|
|000011b0| 20 2b 20 28 56 42 6f 72 | 64 65 72 20 2a 20 32 29 | + (VBor|der * 2)|
|000011c0| 3b 0d 0a 09 7d 0d 0a 0d | 0a 09 66 6f 72 28 20 49 |;...}...|..for( I|
|000011d0| 20 3d 20 55 57 69 6e 64 | 6f 77 43 6f 6d 62 6f 4c | = UWind|owComboL|
|000011e0| 69 73 74 49 74 65 6d 28 | 49 74 65 6d 73 2e 4e 65 |istItem(|Items.Ne|
|000011f0| 78 74 29 3b 49 20 21 3d | 20 4e 6f 6e 65 3b 20 49 |xt);I !=| None; I|
|00001200| 20 3d 20 55 57 69 6e 64 | 6f 77 43 6f 6d 62 6f 4c | = UWind|owComboL|
|00001210| 69 73 74 49 74 65 6d 28 | 49 2e 4e 65 78 74 29 20 |istItem(|I.Next) |
|00001220| 29 0d 0a 09 7b 0d 0a 09 | 09 54 65 78 74 53 69 7a |)...{...|.TextSiz|
|00001230| 65 28 43 2c 20 52 65 6d | 6f 76 65 41 6d 70 65 72 |e(C, Rem|oveAmper|
|00001240| 73 61 6e 64 28 49 2e 56 | 61 6c 75 65 29 2c 20 57 |sand(I.V|alue), W|
|00001250| 2c 20 48 29 3b 0d 0a 09 | 09 69 66 28 57 20 2b 20 |, H);...|.if(W + |
|00001260| 45 78 74 72 61 57 69 64 | 74 68 20 3e 20 4d 61 78 |ExtraWid|th > Max|
|00001270| 57 69 64 74 68 29 0d 0a | 09 09 09 4d 61 78 57 69 |Width)..|...MaxWi|
|00001280| 64 74 68 20 3d 20 57 20 | 2b 20 45 78 74 72 61 57 |dth = W |+ ExtraW|
|00001290| 69 64 74 68 3b 0d 0a 09 | 7d 0d 0a 0d 0a 09 57 69 |idth;...|}.....Wi|
|000012a0| 6e 57 69 64 74 68 20 3d | 20 4d 61 78 57 69 64 74 |nWidth =| MaxWidt|
|000012b0| 68 3b 0d 0a 0d 0a 09 4c | 69 73 74 58 20 3d 20 4f |h;.....L|istX = O|
|000012c0| 77 6e 65 72 2e 45 64 69 | 74 41 72 65 61 44 72 61 |wner.Edi|tAreaDra|
|000012d0| 77 58 20 2b 20 4f 77 6e | 65 72 2e 45 64 69 74 42 |wX + Own|er.EditB|
|000012e0| 6f 78 57 69 64 74 68 20 | 2d 20 57 69 6e 57 69 64 |oxWidth |- WinWid|
|000012f0| 74 68 3b 0d 0a 09 4c 69 | 73 74 59 20 3d 20 4f 77 |th;...Li|stY = Ow|
|00001300| 6e 65 72 2e 42 75 74 74 | 6f 6e 2e 57 69 6e 54 6f |ner.Butt|on.WinTo|
|00001310| 70 20 2b 20 4f 77 6e 65 | 72 2e 42 75 74 74 6f 6e |p + Owne|r.Button|
|00001320| 2e 57 69 6e 48 65 69 67 | 68 74 3b 0d 0a 0d 0a 09 |.WinHeig|ht;.....|
|00001330| 69 66 28 43 6f 75 6e 74 | 20 3e 20 4d 61 78 56 69 |if(Count| > MaxVi|
|00001340| 73 69 62 6c 65 29 0d 0a | 09 7b 0d 0a 09 09 56 65 |sible)..|.{....Ve|
|00001350| 72 74 53 42 2e 53 68 6f | 77 57 69 6e 64 6f 77 28 |rtSB.Sho|wWindow(|
|00001360| 29 3b 0d 0a 09 09 56 65 | 72 74 53 42 2e 53 65 74 |);....Ve|rtSB.Set|
|00001370| 52 61 6e 67 65 28 30 2c | 20 43 6f 75 6e 74 2c 20 |Range(0,| Count, |
|00001380| 4d 61 78 56 69 73 69 62 | 6c 65 29 3b 0d 0a 09 09 |MaxVisib|le);....|
|00001390| 56 65 72 74 53 42 2e 57 | 69 6e 4c 65 66 74 20 3d |VertSB.W|inLeft =|
|000013a0| 20 57 69 6e 57 69 64 74 | 68 20 2d 20 4c 6f 6f 6b | WinWidt|h - Look|
|000013b0| 41 6e 64 46 65 65 6c 2e | 53 69 7a 65 5f 53 63 72 |AndFeel.|Size_Scr|
|000013c0| 6f 6c 6c 62 61 72 57 69 | 64 74 68 20 2d 20 48 42 |ollbarWi|dth - HB|
|000013d0| 6f 72 64 65 72 3b 0d 0a | 09 09 56 65 72 74 53 42 |order;..|..VertSB|
|000013e0| 2e 57 69 6e 54 6f 70 20 | 3d 20 48 42 6f 72 64 65 |.WinTop |= HBorde|
|000013f0| 72 3b 0d 0a 09 09 56 65 | 72 74 53 42 2e 57 69 6e |r;....Ve|rtSB.Win|
|00001400| 57 69 64 74 68 20 3d 20 | 4c 6f 6f 6b 41 6e 64 46 |Width = |LookAndF|
|00001410| 65 65 6c 2e 53 69 7a 65 | 5f 53 63 72 6f 6c 6c 62 |eel.Size|_Scrollb|
|00001420| 61 72 57 69 64 74 68 3b | 0d 0a 09 09 56 65 72 74 |arWidth;|....Vert|
|00001430| 53 42 2e 57 69 6e 48 65 | 69 67 68 74 20 3d 20 57 |SB.WinHe|ight = W|
|00001440| 69 6e 48 65 69 67 68 74 | 20 2d 20 32 2a 56 42 6f |inHeight| - 2*VBo|
|00001450| 72 64 65 72 3b 0d 0a 09 | 7d 0d 0a 09 65 6c 73 65 |rder;...|}...else|
|00001460| 0d 0a 09 7b 0d 0a 09 09 | 56 65 72 74 53 42 2e 48 |...{....|VertSB.H|
|00001470| 69 64 65 57 69 6e 64 6f | 77 28 29 3b 0d 0a 09 7d |ideWindo|w();...}|
|00001480| 0d 0a 0d 0a 09 4f 77 6e | 65 72 2e 57 69 6e 64 6f |.....Own|er.Windo|
|00001490| 77 54 6f 47 6c 6f 62 61 | 6c 28 4c 69 73 74 58 2c |wToGloba|l(ListX,|
|000014a0| 20 4c 69 73 74 59 2c 20 | 57 69 6e 4c 65 66 74 2c | ListY, |WinLeft,|
|000014b0| 20 57 69 6e 54 6f 70 29 | 3b 0d 0a 7d 0d 0a 0d 0a | WinTop)|;..}....|
|000014c0| 66 75 6e 63 74 69 6f 6e | 20 50 61 69 6e 74 28 43 |function| Paint(C|
|000014d0| 61 6e 76 61 73 20 43 2c | 20 66 6c 6f 61 74 20 58 |anvas C,| float X|
|000014e0| 2c 20 66 6c 6f 61 74 20 | 59 29 0d 0a 7b 0d 0a 09 |, float |Y)..{...|
|000014f0| 6c 6f 63 61 6c 20 69 6e | 74 20 43 6f 75 6e 74 3b |local in|t Count;|
|00001500| 0d 0a 09 6c 6f 63 61 6c | 20 55 57 69 6e 64 6f 77 |...local| UWindow|
|00001510| 43 6f 6d 62 6f 4c 69 73 | 74 49 74 65 6d 20 49 3b |ComboLis|tItem I;|
|00001520| 0d 0a 0d 0a 09 44 72 61 | 77 4d 65 6e 75 42 61 63 |.....Dra|wMenuBac|
|00001530| 6b 67 72 6f 75 6e 64 28 | 43 29 3b 0d 0a 09 0d 0a |kground(|C);.....|
|00001540| 09 43 6f 75 6e 74 20 3d | 20 30 3b 0d 0a 0d 0a 09 |.Count =| 0;.....|
|00001550| 66 6f 72 28 20 49 20 3d | 20 55 57 69 6e 64 6f 77 |for( I =| UWindow|
|00001560| 43 6f 6d 62 6f 4c 69 73 | 74 49 74 65 6d 28 49 74 |ComboLis|tItem(It|
|00001570| 65 6d 73 2e 4e 65 78 74 | 29 3b 49 20 21 3d 20 4e |ems.Next|);I != N|
|00001580| 6f 6e 65 3b 20 49 20 3d | 20 55 57 69 6e 64 6f 77 |one; I =| UWindow|
|00001590| 43 6f 6d 62 6f 4c 69 73 | 74 49 74 65 6d 28 49 2e |ComboLis|tItem(I.|
|000015a0| 4e 65 78 74 29 20 29 0d | 0a 09 7b 0d 0a 09 09 69 |Next) ).|..{....i|
|000015b0| 66 28 56 65 72 74 53 42 | 2e 62 57 69 6e 64 6f 77 |f(VertSB|.bWindow|
|000015c0| 56 69 73 69 62 6c 65 29 | 0d 0a 09 09 7b 0d 0a 09 |Visible)|....{...|
|000015d0| 09 09 69 66 28 43 6f 75 | 6e 74 20 3e 3d 20 56 65 |..if(Cou|nt >= Ve|
|000015e0| 72 74 53 42 2e 50 6f 73 | 29 0d 0a 09 09 09 09 44 |rtSB.Pos|)......D|
|000015f0| 72 61 77 49 74 65 6d 28 | 43 2c 20 49 2c 20 48 42 |rawItem(|C, I, HB|
|00001600| 6f 72 64 65 72 2c 20 56 | 42 6f 72 64 65 72 20 2b |order, V|Border +|
|00001610| 20 28 49 74 65 6d 48 65 | 69 67 68 74 20 2a 20 28 | (ItemHe|ight * (|
|00001620| 43 6f 75 6e 74 20 2d 20 | 56 65 72 74 53 42 2e 50 |Count - |VertSB.P|
|00001630| 6f 73 29 29 2c 20 57 69 | 6e 57 69 64 74 68 20 2d |os)), Wi|nWidth -|
|00001640| 20 28 32 20 2a 20 48 42 | 6f 72 64 65 72 29 20 2d | (2 * HB|order) -|
|00001650| 20 56 65 72 74 53 42 2e | 57 69 6e 57 69 64 74 68 | VertSB.|WinWidth|
|00001660| 2c 20 49 74 65 6d 48 65 | 69 67 68 74 29 3b 0d 0a |, ItemHe|ight);..|
|00001670| 09 09 7d 0d 0a 09 09 65 | 6c 73 65 0d 0a 09 09 09 |..}....e|lse.....|
|00001680| 44 72 61 77 49 74 65 6d | 28 43 2c 20 49 2c 20 48 |DrawItem|(C, I, H|
|00001690| 42 6f 72 64 65 72 2c 20 | 56 42 6f 72 64 65 72 20 |Border, |VBorder |
|000016a0| 2b 20 28 49 74 65 6d 48 | 65 69 67 68 74 20 2a 20 |+ (ItemH|eight * |
|000016b0| 43 6f 75 6e 74 29 2c 20 | 57 69 6e 57 69 64 74 68 |Count), |WinWidth|
|000016c0| 20 2d 20 28 32 20 2a 20 | 48 42 6f 72 64 65 72 29 | - (2 * |HBorder)|
|000016d0| 2c 20 49 74 65 6d 48 65 | 69 67 68 74 29 3b 0d 0a |, ItemHe|ight);..|
|000016e0| 09 09 43 6f 75 6e 74 2b | 2b 3b 0d 0a 09 7d 0d 0a |..Count+|+;...}..|
|000016f0| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 44 72 |}....fun|ction Dr|
|00001700| 61 77 4d 65 6e 75 42 61 | 63 6b 67 72 6f 75 6e 64 |awMenuBa|ckground|
|00001710| 28 43 61 6e 76 61 73 20 | 43 29 0d 0a 7b 0d 0a 09 |(Canvas |C)..{...|
|00001720| 4c 6f 6f 6b 41 6e 64 46 | 65 65 6c 2e 43 6f 6d 62 |LookAndF|eel.Comb|
|00001730| 6f 4c 69 73 74 5f 44 72 | 61 77 42 61 63 6b 67 72 |oList_Dr|awBackgr|
|00001740| 6f 75 6e 64 28 53 65 6c | 66 2c 20 43 29 3b 0d 0a |ound(Sel|f, C);..|
|00001750| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 44 72 |}....fun|ction Dr|
|00001760| 61 77 49 74 65 6d 28 43 | 61 6e 76 61 73 20 43 2c |awItem(C|anvas C,|
|00001770| 20 55 57 69 6e 64 6f 77 | 4c 69 73 74 20 49 74 65 | UWindow|List Ite|
|00001780| 6d 2c 20 66 6c 6f 61 74 | 20 58 2c 20 66 6c 6f 61 |m, float| X, floa|
|00001790| 74 20 59 2c 20 66 6c 6f | 61 74 20 57 2c 20 66 6c |t Y, flo|at W, fl|
|000017a0| 6f 61 74 20 48 29 0d 0a | 7b 0d 0a 09 4c 6f 6f 6b |oat H)..|{...Look|
|000017b0| 41 6e 64 46 65 65 6c 2e | 43 6f 6d 62 6f 4c 69 73 |AndFeel.|ComboLis|
|000017c0| 74 5f 44 72 61 77 49 74 | 65 6d 28 53 65 6c 66 2c |t_DrawIt|em(Self,|
|000017d0| 20 43 2c 20 58 2c 20 59 | 2c 20 57 2c 20 48 2c 20 | C, X, Y|, W, H, |
|000017e0| 55 57 69 6e 64 6f 77 43 | 6f 6d 62 6f 4c 69 73 74 |UWindowC|omboList|
|000017f0| 49 74 65 6d 28 49 74 65 | 6d 29 2e 56 61 6c 75 65 |Item(Ite|m).Value|
|00001800| 2c 20 53 65 6c 65 63 74 | 65 64 20 3d 3d 20 49 74 |, Select|ed == It|
|00001810| 65 6d 29 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |em);..}.|...funct|
|00001820| 69 6f 6e 20 45 78 65 63 | 75 74 65 49 74 65 6d 28 |ion Exec|uteItem(|
|00001830| 55 57 69 6e 64 6f 77 43 | 6f 6d 62 6f 4c 69 73 74 |UWindowC|omboList|
|00001840| 49 74 65 6d 20 49 29 0d | 0a 7b 0d 0a 09 4f 77 6e |Item I).|.{...Own|
|00001850| 65 72 2e 53 65 74 56 61 | 6c 75 65 28 49 2e 56 61 |er.SetVa|lue(I.Va|
|00001860| 6c 75 65 2c 20 49 2e 56 | 61 6c 75 65 32 29 3b 0d |lue, I.V|alue2);.|
|00001870| 0a 09 43 6c 6f 73 65 55 | 70 28 29 3b 0d 0a 7d 0d |..CloseU|p();..}.|
|00001880| 0a 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 43 6c |.....fun|ction Cl|
|00001890| 6f 73 65 55 70 28 29 20 | 0d 0a 7b 0d 0a 09 4f 77 |oseUp() |..{...Ow|
|000018a0| 6e 65 72 2e 43 6c 6f 73 | 65 55 70 28 29 3b 0d 0a |ner.Clos|eUp();..|
|000018b0| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 46 6f |}....fun|ction Fo|
|000018c0| 63 75 73 4f 74 68 65 72 | 57 69 6e 64 6f 77 28 55 |cusOther|Window(U|
|000018d0| 57 69 6e 64 6f 77 57 69 | 6e 64 6f 77 20 57 29 0d |WindowWi|ndow W).|
|000018e0| 0a 7b 0d 0a 09 53 75 70 | 65 72 2e 46 6f 63 75 73 |.{...Sup|er.Focus|
|000018f0| 4f 74 68 65 72 57 69 6e | 64 6f 77 28 57 29 3b 0d |OtherWin|dow(W);.|
|00001900| 0a 0d 0a 09 69 66 28 62 | 57 69 6e 64 6f 77 56 69 |....if(b|WindowVi|
|00001910| 73 69 62 6c 65 20 26 26 | 20 57 2e 50 61 72 65 6e |sible &&| W.Paren|
|00001920| 74 57 69 6e 64 6f 77 2e | 50 61 72 65 6e 74 57 69 |tWindow.|ParentWi|
|00001930| 6e 64 6f 77 20 21 3d 20 | 53 65 6c 66 20 26 26 20 |ndow != |Self && |
|00001940| 57 2e 50 61 72 65 6e 74 | 57 69 6e 64 6f 77 20 21 |W.Parent|Window !|
|00001950| 3d 20 53 65 6c 66 20 26 | 26 20 57 2e 50 61 72 65 |= Self &|& W.Pare|
|00001960| 6e 74 57 69 6e 64 6f 77 | 20 21 3d 20 4f 77 6e 65 |ntWindow| != Owne|
|00001970| 72 29 0d 0a 09 7b 0d 0a | 09 09 2f 2f 20 4c 6f 67 |r)...{..|..// Log|
|00001980| 28 22 46 6f 63 75 73 20 | 74 6f 20 22 24 77 24 22 |("Focus |to "$w$"|
|00001990| 20 63 61 75 73 65 64 20 | 63 6c 6f 73 65 22 29 3b | caused |close");|
|000019a0| 0d 0a 09 09 43 6c 6f 73 | 65 55 70 28 29 3b 0d 0a |....Clos|eUp();..|
|000019b0| 09 7d 0d 0a 7d 0d 0a 0d | 0a 0d 0a 00 |.}..}...|.... |
+--------+-------------------------+-------------------------+--------+--------+